<?php
function init_common(){
    //检查需要的目录和权限是否存在，需要升级则进行升级
}

function init_setting(){
	$settingSystemDefault = $GLOBALS['config']['settingSystemDefault'];
	$setting = $settingSystemDefault;
    /* $GLOBALS['app']是在index.php中new的一个class变量 */
	$GLOBALS['app']->setDefaultController($setting['firstIn']);
	$GLOBALS['app']->setDefaultAction('index');
	$GLOBALS['config']['settingSystem'] = $setting;

	//group_role
	$roleGroup = $GLOBALS['config']['pathRoleGroupDefault'];
	$GLOBALS['config']['pathRoleGroup'] = $roleGroup;
}
